#!/usr/bin/env python## CUBudget: http://code.google.com/p/cubudget## Copyright (c) 2008 Clemson University# Released under the GNU GPL, version 2.
import wx

class Report(object):
   def __init__(self,core.obj):
      self.assets= 555.55
      self.debts = 555.55
      
   def makeReport(self):
      try:
         import reportlab
         from reportlab.pdfgen import canvas
         from reportlab.lib.units import inch
         c = canvas.Canvas("report.pdf")
         c.setFont("Helvetica",22)
         c.drawString(4*inch,10.2*inch,"Report")
         c.line(0,700,11*inch,700)
         #start 1inch from x-axis
         c.drawString(1*inch,9*inch,"Assets : $" + str(self.assets))
         c.drawString(1*inch,8*inch,"Debts  : $" + str(self.debts))
         c.drawString(1*inch,7*inch,"Overall: $" + str(self.assets-self.debts))
         c.showPage()         c.save()

      except ImportError:
         print 'No Reportlab library found, get it!'

if __name__ == '__main__':
   report=Report()
   report.makeReport()